package com.design.mode.factory;

/**
 * Created by lucky on 2018/9/14.
 */
public class IDCard extends Product {

    private String owner;

    public IDCard(String owner){
        this.owner = owner;
        System.out.println("制作了 " + owner + " 卡");
    }



    public void use() {
        System.out.println("使用了 " + owner + "卡");
    }

    public String getOwner(){
        return owner;
    }
}
